package com.mz.ozy.mvp.view;

import android.app.Activity;
import android.content.Context;

import com.mz.ozy.base.BasePresenter;
import com.mz.ozy.base.BaseView;
import com.mz.ozy.bean.AlipayAuthBean;
import com.mz.ozy.bean.CheckBean;
import com.mz.ozy.bean.LoginBean;

/**
 * @author
 * @date 2018/7/25
 * @description
 */
public class LoginContract {

     public interface View extends BaseView {
         void onLoginSuccess(LoginBean loginBean);
         void onGetAlipayAuthSuccess(String sdkUrl);
         void onNeedBindPhone(int type, AlipayAuthBean bean);
         void checkUpdateVersionSuccess(CheckBean o);
     }

     public interface  Presenter extends BasePresenter<View> {
         void onLogin(final Context context, final String phone, int type, String password, String deviceid);
         void onGetAlipayAuth(Context context);
         void onAuthLogin(Context context, int type, String auth_code, String openid);
         void checkUpdateVersion(Activity activity);
    }


}
